<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>

    <head th:replace="/common/head :: head"></head>
</head>
<body>
<!-- START PAGE CONTAINER -->
<div class="page-container">

    <!-- START PAGE SIDEBAR -->
    <div class="page-sidebar">
        <!-- START X-NAVIGATION -->
        <div th:replace="/common/left :: left"></div>
        <!-- END X-NAVIGATION -->
    </div>
    <!-- END PAGE SIDEBAR -->

    <!-- PAGE CONTENT -->
    <div class="page-content">

        <div th:replace="/common/top :: top"/>

        <!-- START BREADCRUMB -->
        <!--<ul class="breadcrumb">
            <li><a href="#">Home</a></li>
            <li><a href="#">项目管理</a></li>
            <li class="active">项目列表</li>
        </ul>-->
        <!-- END BREADCRUMB -->

        <!-- PAGE CONTENT WRAPPER -->
        <div class="page-content-wrap">


            <div class="row">
                <div class="col-md-12">

                    <!-- START DATATABLE EXPORT -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title">项目列表</h3>
                            <div class="pull-right">
                               <!-- <div class="btn-group">
                                    <button class="btn btn-success addProject dropdown-toggle btn-condensed">新增</button>
                                </div>
                                <div class="btn-group">
                                    <button type="button" class="btn btn-default panel-collapse btn-condensed">
                                        <i class="fa fa-caret-up"></i>
                                    </button>
                                </div>-->
                            </div>
                        </div>
                        <div class="panel-heading" style="float: right;">
                            <div class="btn-group">
                                <button type="button" class="btn btn-success addProject dropdown-toggle"
                                        onclick="">
                                    <span class="glyphicon glyphicon-plus"></span>新增
                                </button>
                            </div>
                            <!--<div class="pull-right" style="">
                                <label>环境选择:</label>
                                <div class="btn-group" style="width:200px;">
                                    <select name="envId" class="form-control" id="envId" aria-required="true">

                                    </select>
                                </div>
                                <label>应用选择:</label>
                                <div class="btn-group" style="width:200px;">
                                    <select name="appInfoId" class="form-control" id="appId" aria-required="true">

                                    </select>
                                </div>
                                <div class="btn-group">
                                    <button type="button" class="btn btn-success dropdown-toggle"
                                            onclick="loadData()">
                                        <i class="fa">查询</i>
                                    </button>
                                </div>
                            </div>-->
                        </div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table id="dataTables-userInfo" class="table datatable">
                                    <thead>
                                    <tr>
                                        <th width="10%">项目名称</th>
                                        <th  width="15%">项目说明</th>
                                        <th width="12%">创建时间</th>
                                        <th  width="20%">操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                        </div>
                    </div>
                    <!-- END DATATABLE EXPORT -->

                </div>
            </div>

        </div>
        <!-- END PAGE CONTENT WRAPPER -->
    </div>
    <!-- END PAGE CONTENT -->
</div>
<!-- END PAGE CONTAINER -->

<div class="modal fade" id="userInfoDelModal" tabindex="-1" role="dialog"
     aria-labelledby="userInfoDelModalLabel"
     aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="userInfoDelModalLabel">删除认证</h4>
            </div>
            <div class="modal-body">
                <input id="userInfoId" type="hidden">
                确定要删除这个用户信息么？
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"><i class="glyphicon glyphicon-ban-circle"></i>取消</button>
                <button type="button" class="btn btn-primary" onclick="userInfoDel()"><i class="glyphicon glyphicon-trash"></i>删除</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="userInfoEditModal" tabindex="-1" role="dialog"
     aria-labelledby="userInfoEditModalLabel"
     aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="userInfoEditModalLabel">修改</h4>
            </div>
            <div class="modal-body">
                <form id="userInfoEditForm">
                    项目名称：<input name="appName" class="form-control" maxlength="64" minlength="2" placeholder="项目名称" type="text"
                                id="editAppName" aria-required="true"/>
                    项目说明：<textarea name="appDesc" class="form-control" maxlength="255" placeholder="项目说明" type="text"
                                   id="editAppDesc" aria-required="true"></textarea>
                    <!--发布类型：<select name="releaseType" id="editReleaseType" class="form-control"  style="width:100%" >
                                <option value="1">zookeeper 动态配置</option>
                                <option value="2">http 轮询动态配置</option>
                            </select>-->
                    <input type="reset" name="editReset" style="display: none;"/>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"><i class="glyphicon glyphicon-ban-circle"></i>取消</button>
                <button type="button" class="btn btn-primary" onclick="userInfoEdit()"><i class="glyphicon glyphicon-ok-circle"></i>确认</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="userInfoAddModal" tabindex="-1" role="dialog"
     aria-labelledby="userInfoAddModalLabel"
     aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="userInfoAddModalLabel">新增</h4>
            </div>
            <div class="modal-body">
                <form id="userInfoAddForm">
                    项目名称：<input name="appName" class="form-control" maxlength="64" minlength="2" placeholder="项目名称" type="text"
                                id="appName" aria-required="true"/>
                    项目说明：<textarea name="appDesc" class="form-control" maxlength="255" placeholder="项目说明" type="text"
                                   id="appDesc" ></textarea>
                    <!--发布类型：<select name="releaseType" id="releaseType" class="form-control" style="width:100%" >
                                <option value="1">zookeeper 动态配置</option>
                                <option value="2">http 轮询动态配置</option>
                            </select>-->
                    <input type="reset" name="addReset" style="display: none;"/>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"><i class="glyphicon glyphicon-ban-circle"></i>取消</button>
                <button type="button" class="btn btn-primary" onclick="userInfoAdd()"><i class="glyphicon glyphicon-ok-circle"></i>确认</button>
            </div>
        </div>
    </div>
</div>

<div th:replace="/common/footer :: footer"></div>
<script type="text/javascript" th:src="@{/js/admin/app.js}"></script>

</body>
</html>






